package com.seuic.hnapps.adapter;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.seuic.hnapps.R;
import com.seuic.hnapps.bean.Collect_Info_Bean;

import java.util.List;

public class Collect_Info_Adapter extends BaseQuickAdapter<Collect_Info_Bean, BaseViewHolder> {
    public Collect_Info_Adapter(int layoutResId, @Nullable List<Collect_Info_Bean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Collect_Info_Bean item) {
        helper.setText(R.id.collect_info_adapter_item_info, item.getInfo()+"");
        helper.setText(R.id.collect_info_adapter_item_money, item.getMoney()+"");
        helper.setText(R.id.collect_info_adapter_item_num, item.getNum()+"");
    }
}
